/*----------------------------------------------------------------------------------------
* Description:  Service Layer of the Database[EVegetable]'s Table[dbo.TeBiz_Basic_DispatchingInfo].
* Author:       John ZHAO 
* Create Date:  6/14/2012
* History:      1. John ZHAO      Created
                2.
                3.
------------------------------------------------------------------------------------------
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EVegetable.Service
{
    using EVegetable.Domain;
    using EVegetable.Persistence;
    
	/// <summary>
	/// Service class of the Database[EVegetable]'s Table[dbo.TeBiz_Basic_DispatchingInfo].
	/// </summary>
	public partial class TeBiz_Basic_DispatchingInfoSvc
	{       
        /// <summary>
        /// Get All List
        /// </summary>
        /// <returns></returns>
        public List<TeBiz_Basic_DispatchingInfo> GetAllList()
        {
            List<TeBiz_Basic_DispatchingInfo> result = context.GetAll<TeBiz_Basic_DispatchingInfo>().ToList();

            return result;
        }

        /// <summary>
        /// Get single item by key
        /// </summary>
        /// <param name="item">object single item</param>
        /// <returns></returns>
        public TeBiz_Basic_DispatchingInfo GetByKey(TSys_User item)
        {
            TeBiz_Basic_DispatchingInfo result = context.GetById<TeBiz_Basic_DispatchingInfo>(item);

            return result;
        }

        /// <summary>
        /// Add item
        /// </summary>
        /// <param name="item">object single item</param>
        public void Add(TeBiz_Basic_DispatchingInfo item)
        {
            context.Add(item);
        }

        /// <summary>
        /// Update Item
        /// </summary>
        /// <param name="item">object single item</param>
        public void Save(TeBiz_Basic_DispatchingInfo item)
        {
            context.Save(item);
        }

        /// <summary>
        /// Delete Item
        /// </summary>
        /// <param name="item">object single item</param>
        public void Delete(TeBiz_Basic_DispatchingInfo item)
        {
            context.Delete(item);
        }
	}

}
